package com.macro.mall.mapper;

import com.macro.mall.model.BmsSightseeingBusApplicant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BmsSightseeingBusApplicantMapper {


    //查询全部
    List<BmsSightseeingBusApplicant> selectAll(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);


    //新增
    int insert(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

    //更新
    int update(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

    //详情
    BmsSightseeingBusApplicant selectDetail(Long id);

    //删除
    int delete(@Param("ids") List<Long> id);


    BmsSightseeingBusApplicant selectSuccess(Long id);




    List<BmsSightseeingBusApplicant> selectApplicant(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);


    List<BmsSightseeingBusApplicant> getListByUserId(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

    //根据userId+sightseeingId查询是否能有数据
    Long selectApplicantPeople(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

    BmsSightseeingBusApplicant getSuccessBusDataByUserId(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

}